#include "Utility.h"

Frame* Utility::CloneNewFrame(const Frame* srcFrame)
{
	return new Frame(*srcFrame);
}

void Utility::CopyFrame(Frame* &destFrame, const Frame* srcFrame)
{
	memcpy(destFrame, srcFrame, sizeof(Frame));
	for (int i = 0; i < 8; i++)
	{
		int len = sizeof(*srcFrame->data[i]);
		memcpy(destFrame->data[i], srcFrame->data[i], srcFrame->linesize[i] * srcFrame->height);
		destFrame->linesize[i] = srcFrame->linesize[i];
	}
}

void Utility::ReleaseFrame(const Frame** frame)
{

}
